
import Vue from 'vue'

import '@/common/css/reset2.css'
import '@/common/css/common.css'
import '@/common/css/HR-font.css'

// import axios from 'axios'
// axios.defaults.withCredentials=true
import App from './index.vue'

// Vue.config.productionTip = false;
// Vue.prototype.Axios = axios;

import Axios from '@/common/js/commonAjax'
Vue.prototype.Axios = Axios

import CommonRouter from '@/common/js/commonRouter'
Vue.prototype.URL = CommonRouter;

import Vuex from 'vuex'
Vue.use(Vuex);
const store = require('@/common/stores/index')(Vuex)

import FastClick from 'fastclick'
// FastClick(document.body)
if ('addEventListener' in document) {  
  document.addEventListener('DOMContentLoaded', function() {  
    FastClick.attach(document.body);  
  }, false);  
}  

import '@/common/js/rem'
// import urlTotalList from '@/common/js/commonRouter'
// Vue.prototype.URL = urlTotalList



// const app=new Vue({
//   el: '#app',
//   template: '<App/>',
//   components: { App }
// })

const app =new Vue({
    store, // 将Vuex的Store挂载到vue的根实例上
    render:h=>h(App)
}).$mount("#app") // $mount等同于Vue内的el属性
